//
//  HBHWebViewCell.m
//  HubeiHotel
//
//  Created by 张露杰 on 18/4/12.
//  Copyright © 2018年 张露杰. All rights reserved.
//

#import "HBHWebViewCell.h"

@implementation HBHWebViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])// 先调用父类的方法
    {
        self.selectionStyle = 0;
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

-(void)loadCellWithWeb:(UIView *)web
{
    for (UIView *view in self.contentView.subviews) {
        [view removeFromSuperview];
    }
    [self.contentView addSubview:web];
}

@end
